﻿using System;
using System.Collections.Generic;
using System.Text;
using UtilZ.Dotnet.Ex.Communication.Base;

namespace UtilZ.Dotnet.Ex.Communication.Ports
{
    /// <summary>
    /// 串口连接信息
    /// </summary>
    public class SerialPortLinkInfo : LinkInfoAbs
    {
        /// <summary>
        /// 串口名称
        /// </summary>
        public string SerialPortName { get; private set; }


        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="comName">串口名称</param>
        public SerialPortLinkInfo(string comName)
            : base()
        {
            this.SerialPortName = comName;
        }

        /// <summary>
        /// 重写ToString
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return this.SerialPortName;
        }
    }
}
